home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-28 | 493 b | 28 lines | [TEXT/CWIE] |
- // Receiver.h
-
- #ifndef Receiver_h
- #define Receiver_h
-
- #ifndef BroadcastLink_h
- #include "BroadcastLink.h"
- #endif
-
- template < class Protocol >
- class Receiver: public Protocol
- {
- typedef Broadcaster< Protocol > Source;
-
- private:
- BroadcastLink< Protocol > link;
-
- public:
- Receiver( const Source& source, bool startEnabled = true )
- : link( source, *this, startEnabled )
- {}
-
- Enableable& Link() { return link; }
- const Enableable& Link() const { return link; }
- };
-
- #endif
-